主题
按键char - KeyPressChar
函数简介
按下指定的虚拟键字符。
接口名称
KeyPressCharDLL调用
int KeyPressChar(long ola, string key_str);参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| key_str | 字符串 | 按键字符。 |
示例
SDK 调用
cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
ola.KeyPressChar(65);csharp
using OLAPlug;
var ola = new OLAPlugServer();
ola.KeyPressChar(65);python
from OLAPlugServer import OLAPlugServer
ola = OLAPlugServer()
ola.KeyPressChar(65)java
import com.olaplug.OLAPlugServer;
OLAPlugServer ola = new OLAPlugServer();
ola.KeyPressChar(65);cpp
var ola = com("OlaPlug.OlaSoft")
ola.KeyPressChar(65);vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ola.KeyPressChar(65);text
.局部变量 ola, OLAPlug
ola.创建 ()
ola.KeyPressChar(65)aardio
import OLAPlugServer;
var ola = OLAPlugServer();
ola.KeyPressChar(65);text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
ola.KeyPressChar(65);cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
ola.KeyPressChar(65);原生 DLL 调用
cpp
long instance = CreateCOLAPlugInterFace();
KeyPressChar(instance, 65);csharp
long instance = CreateCOLAPlugInterFace();
KeyPressChar(instance, 65);python
from ctypes import CDLL, c_int, c_int64, create_string_buffer
ola = CDLL("OLAPlug_x64.dll")
ola.CreateCOLAPlugInterFace.restype = c_int64
instance = ola.CreateCOLAPlugInterFace()
KeyPressChar(instance, 65)返回值
1 成功,0 失败。
